package lab02.test33;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * 33、 	从控制台输入若干个单词（输入回车结束）放入集合中，
 * 将这些单词排序后（忽略大小写）打印出来。
 * Created by AIR on 2017/11/13.
 */
public class Test {
    public static void main(String[] args) {
        List<String>words=new ArrayList<>();

        //接收用户输值
        Scanner scanner=new Scanner(System.in);
        words.add(scanner.next());
        words.add(scanner.next());
        words.add(scanner.next());
        words.add(scanner.next());
        words.add(scanner.next());
        words.add(scanner.next());
        words.add(scanner.next());
        words.add(scanner.next());

        System.out.println(words);


    }
}
